﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kaixin.Components.InterFace;
using System.Windows.Forms;
using ComponentFactory.Krypton.Toolkit;
using Kaixin.Components.Tycoon.PanelFactory;

namespace Kaixin.Components.Tycoon
{
    /// <summary>
    /// 大亨具体界面类
    /// 创建：2009-12-9 14:54:21
    /// 版本：1.0
    /// 作者：吴鸣震
    /// </summary>
    class UIFactory : IUIFactory
    {
        #region IUIFactory 成员
        IUIPanelFactory goodsUI = new GoodsUIFactory();
        IUIPanelFactory orderUI = new OrdersUIFactory();

        public IUIPanelFactory CreatePanelFactory(string menu)
        {
            switch (menu)
            {
                case "物品跌幅榜":
                    return goodsUI;
                case "委托单操作":
                    return orderUI;
                default:
                    return goodsUI;
            }
        }

        #endregion

    }
}
